package mapspinner.persistence;

import mapspinner.TerrainKey;
import mapspinner.persistence.datatypes.TerrainData;
import mapspinner.persistence.datatypes.TerrainSettings;

public interface TerrainPersistence {
	public TerrainSettings getSettings(String directory) throws Exception;

	public TerrainData getTerrainData(final TerrainKey key,
			final String directory) throws Exception;

	public void setSettings(String directory, TerrainSettings settings)
			throws Exception;

	public void setTerrainData(final TerrainKey key, final TerrainData mapData,
			final String directory) throws Exception;
}
